package cn.iocoder.yudao.module.member.convert.score;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.member.controller.admin.score.vo.ScoreCreateReqVO;
import cn.iocoder.yudao.module.member.controller.admin.score.vo.ScoreExcelVO;
import cn.iocoder.yudao.module.member.controller.admin.score.vo.ScoreRespVO;
import cn.iocoder.yudao.module.member.controller.admin.score.vo.ScoreUpdateReqVO;
import cn.iocoder.yudao.module.member.dal.dataobject.score.ScoreDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户积分记录 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface ScoreConvert {

    ScoreConvert INSTANCE = Mappers.getMapper(ScoreConvert.class);

    ScoreDO convert(ScoreCreateReqVO bean);

    ScoreDO convert(ScoreUpdateReqVO bean);

    ScoreRespVO convert(ScoreDO bean);

    List<ScoreRespVO> convertList(List<ScoreDO> list);

    PageResult<ScoreRespVO> convertPage(PageResult<ScoreDO> page);

    List<ScoreExcelVO> convertList02(List<ScoreDO> list);

}
